package com.huike.report.service;

import java.text.ParseException;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

import com.huike.contract.domain.vo.BusinesschangeVO;
import com.huike.report.domain.vo.*;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDate;
import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.huike.common.core.page.TableDataInfo;
import com.huike.contract.domain.vo.RejectVo;
import com.huike.contract.domain.vo.TransferVo;
import com.huike.report.domain.DTO.PageDTO;
import com.huike.report.domain.page.PageReport;
import com.huike.report.domain.vo.*;
import org.apache.ibatis.annotations.Param;

import com.huike.clues.domain.TbActivity;
import com.huike.clues.domain.TbClue;
import com.huike.clues.domain.vo.IndexStatisticsVo;
import com.huike.contract.domain.TbContract;
import com.huike.clues.domain.dto.ReportDto;
import com.huike.clues.domain.vo.ReportVo;
import com.huike.common.core.page.TableDataInfo;

import com.huike.clues.domain.TbActivity;
import com.huike.clues.domain.TbClue;
import com.huike.clues.domain.vo.IndexStatisticsVo;
import com.huike.contract.domain.TbContract;
import org.springframework.stereotype.Service;

@Service
public interface IReportService {
   ;

    public LineChartVO contractStatistics(String beginCreateTime, String endCreateTime) throws ParseException;


    List<TbContract> contractReportList(TbContract tbContract);

    LineChartVO salesStatistics(String beginCreateTime, String endCreateTime);


    List<Map<String, Object>> deptStatisticsList(String beginCreateTime, String endCreateTime);

    List<Map<String, Object>> ownerShipStatisticsList(String beginCreateTime, String endCreateTime);

    List<Map<String, Object>> channelStatisticsList(String beginCreateTime, String endCreateTime);

    List<Map<String, Object>> subjectStatistics(String beginCreateTime, String endCreateTime);

    VulnerabilityMapVo getVulnerabilityMap(LocalDate beginCreateTime, LocalDate endCreateTime);
    TableDataInfo page(ReportDto reportDto);
    /**
     * 活动统计饼状图
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    List<ActivityStatisTicVO> activityStatisTice(LocalDate beginCreateTime, LocalDate endCreateTime);

    /**
     * 渠道统计报表
     * @param pageDTO
     * @return
     */
    PageReport actPage(PageDTO pageDTO);

 ReportVo getCluesStatistics(ReportDto reportDto);


 List<ChanelStatisticsVo> chanelStatistics(LocalDate beginCreateTime, LocalDate endCreateTime);




  /**
   * 线索转化龙虎榜接口
   * @param beginCreateTime
   * @param endCreateTime
   * @param
   * @return
   */
  List<BusinesschangeVO> salesStatistic(String beginCreateTime, String endCreateTime, Long deptId);

  /**
   * 商家转化龙虎榜接口
   * @param beginCreateTime
   * @param endCreateTime
   * @param deptId
   * @return
   */
  List<BusinesschangeVO>   businessChangeStatistics(String beginCreateTime, String endCreateTime, Long deptId);




}
